package com.nuanshui.heatedloan.credit.bean;

import com.nuanshui.heatedloan.credit.handler.CustomAuthHandler;

/**
 * Created by wangxw on 2017/6/26.
 * 对认证执行器的一个封装,
 */
public class CustomAuthHandlerMeta implements Comparable<CustomAuthHandlerMeta>{

    private CustomAuthHandler customAuthHandler;

    private int order;

    private String name;

    public CustomAuthHandler getCustomAuthHandler() {
        return customAuthHandler;
    }

    public void setCustomAuthHandler(CustomAuthHandler customAuthHandler) {
        this.customAuthHandler = customAuthHandler;
    }

    public int getOrder() {
        return order;
    }

    public void setOrder(int order) {
        this.order = order;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    @Override
    public int compareTo(CustomAuthHandlerMeta customAuthHandlerMeta) {
        return (this.order-customAuthHandlerMeta.getOrder());
    }
}
